package com.kaikeba.t31.admin.api;

import com.kaikeba.t31.admin.po.AdminRole;
import com.kaikeba.t31.admin.po.AdminUser;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

public interface UserApi {
    @ApiOperation("通过登录获得用户")
    @GetMapping("/get/{userName}")
    AdminUser getByUserName(@PathVariable("userName") String userName);


    @ApiOperation("通过用户ID获得角色")
    @GetMapping("/select-roles/{id}")
    List<AdminRole> selectRolesByUserId(@PathVariable("id") Long id);

}
